package com.verisette.ncos.persistence.domain;

import java.io.Serializable;
import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Lob;
import javax.persistence.OneToMany;
import javax.persistence.Table;


/**
 * The persistent class for the MASTER_TEMPLATE_GROUP database table.
 * 
 */
@Entity
@Table(name="MASTER_TEMPLATE_GROUP")
public class MasterTemplateGroup implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="MTG_ID")
	private int mtgId;

    @Lob()
	@Column(name="MTG_DESC")
	private String mtgDesc;

	@Column(name="MTG_NAME")
	private String mtgName;

	@Column(name="MTG_NAME_TH")
	private String mtgNameTh;
	
	@OneToMany(mappedBy="masterTemplateGroup")
	private List<MasterTemplateGroupToMtp> masterTemplateGroupToMtps;
	
	@OneToMany(mappedBy="masterTemplateGroup")
	private List<MasterTemplateGroupToUsp> masterTemplateGroupToUsps;

    public MasterTemplateGroup() {
    }

	public int getMtgId() {
		return this.mtgId;
	}

	public void setMtgId(int mtgId) {
		this.mtgId = mtgId;
	}

	public String getMtgDesc() {
		return this.mtgDesc;
	}

	public void setMtgDesc(String mtgDesc) {
		this.mtgDesc = mtgDesc;
	}

	public String getMtgName() {
		return this.mtgName;
	}

	public void setMtgName(String mtgName) {
		this.mtgName = mtgName;
	}

	public String getMtgNameTh() {
		return this.mtgNameTh;
	}

	public void setMtgNameTh(String mtgNameTh) {
		this.mtgNameTh = mtgNameTh;
	}

	public List<MasterTemplateGroupToMtp> getMasterTemplateGroupToMtps() {
		return masterTemplateGroupToMtps;
	}

	public void setMasterTemplateGroupToMtps(
			List<MasterTemplateGroupToMtp> masterTemplateGroupToMtps) {
		this.masterTemplateGroupToMtps = masterTemplateGroupToMtps;
	}

	public List<MasterTemplateGroupToUsp> getMasterTemplateGroupToUsps() {
		return masterTemplateGroupToUsps;
	}

	public void setMasterTemplateGroupToUsps(
			List<MasterTemplateGroupToUsp> masterTemplateGroupToUsps) {
		this.masterTemplateGroupToUsps = masterTemplateGroupToUsps;
	}

}